<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<title>封条管理及验证系统--消息模板修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/comm.jsp"%>
<script language="JavaScript" src="<%=request.getContextPath()%>/js/fck_email/fckeditor.js"></script>
<s:if test="%{true}">
<script type="text/javascript">
	window.onload = function()
	{
		var sBasePath = '<%=request.getContextPath()%>/js/fck_email/' ;
		var oFCKeditor = new FCKeditor( 'content' ) ;
		oFCKeditor.BasePath	= sBasePath ;
		oFCKeditor.Height = 300 ;
		oFCKeditor.ToolbarSet = 'freemail';
		oFCKeditor.ReplaceTextarea() ;
	}
</script>
</s:if>

	<style type="text/css">
	<!--
	fieldset {
	    padding:10px;
	    margin:10px;
	    width:270px;
	    color:#333; 
	} 
	legend {
	    color:#06c;
	    font-weight:800; 
	} 
		-->
	</style>
<body leftmargin="0" topmargin="0" marginheight="0" >
  <s:form name ="formpage" action="template_update" namespace="/">
  	<s:token>
	</s:token>
	<div align="center">
	<s:hidden id="hdfId" name="hdfId" value="%{#request.template.id}" />
  	<%@ include file="/messages.jsp"%>
			<fieldset>
				<legend>
					修改消息模板
				</legend>
				<table align="center" width="750">
					<tr>
						<td align="right" width="120">
							模板标题：
						</td>
						<td>
							<input name="title" type="text" value="${template.title }"
							 maxlength="40" size="50" class="required"  title="*必填"
							/>
						</td>
					</tr>
					<tr>
						<td align="right">
							模板内容：
						</td>
						<td>
							<textarea name="content" rows="6" cols="80">${template.content }</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" class="button" id="ok" name="ok"
								value=" 保 存 " />
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<s:submit action="template_list"  value="  返 回  "></s:submit>
						</td>
					</tr>
				</table>
			</fieldset>
			</div>
		</s:form>
  </body>
</html>